package com.yaoran.userauth.dao;

import com.yaoran.userauth.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LoginDao{
    List<User> getUser(@Param("username") String username, @Param("password") String password);

    User queryByUsername(@Param("username") String username);

}